package com.kingyea.mobilepolice.apimanage.providerservicehost.service;

import com.kingyea.mobilepolice.apimanage.providerservicehost.bean.ProviderServiceHost;

import java.util.List;
import java.util.Map;

/**
 * @author Mr.Lin
 * @version v1.0.0
 * @description ProviderServiceHost 接口
 * @date Created in 2018-05-19 16:13:25
 */
public interface ProviderServiceHostService {

    /**
     * 通过ID查找对象
     *
     * @param hostSerialNo
     * @return
     */
    ProviderServiceHost getById(String hostSerialNo) throws Exception;

    /**
     * 列表
     *
     * @param providerServiceHost
     * @return
     */
    List<ProviderServiceHost> list(ProviderServiceHost providerServiceHost) throws Exception;

    /**
     * 删除
     *
     * @param hostSerialNo
     * @return
     */
    int deleteById(String hostSerialNo) throws Exception;

    /**
     * 添加
     *
     * @param providerServiceHost
     * @return
     */
    ProviderServiceHost save(ProviderServiceHost providerServiceHost) throws Exception;

    /**
     * 更新
     *
     * @param providerServiceHost
     * @return
     */
    ProviderServiceHost update(ProviderServiceHost providerServiceHost) throws Exception;

    Object searchByCondition(Map<String, Object> map) throws Exception;
}
